import React = require("react");
import { Role } from "gateway-entities";
import { DataListPage } from "maishu-chitu-admin/static";
import { roleDataSource } from "services/datasources";
import { boundField, dateTimeField } from "maishu-wuzhui-helper";

export default class RolePage extends DataListPage<Role> {
    itemName = "角色";
    dataSource = roleDataSource;
    columns = [
        boundField<Role>({ dataField: "name", headerText: "名称" }),
        dateTimeField<Role>({ dataField: "create_date_time", headerText: "创建时间" })
    ]
} 